// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
//引入公共样式
import './assets/css/reset.css'
//引入自定义插件https用于接口请求
import MyHttpServer from './plugins/https'
Vue.use(MyHttpServer)
//导入moment
import moment from 'moment'
/*import user from '../src/views/user/index'
Vue.use(user);
Vue.component('user',user)*/

Vue.config.productionTip = false

//全局过滤器-处理日期
Vue.filter('fmtdate',(v)=>{
  return moment(v).format('YYYY-MM-DD')
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
